home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / dev / cross / GBDK-2.0.lha / GBDK / lib / abs.c next >
C/C++ Source or Header  |  1998-10-01  |  99b  |  10 lines

  1. #include <stdlib.h>
  2.  
  3. UBYTE abs(BYTE num)
  4. {
  5.   if(num < 0)
  6.     return -num;
  7.   else
  8.     return num;
  9. }
  10.